#include<iostream>
#include<string>

template <class T>
void Swap(T& a, T& b)
{
    T tmp = a;
    a = b;
    b = tmp;
}

void Swap(int &a, int &b)
{
    int tmp = a;
    a = b;
    b = tmp;
}

int main()
{
    int a1 = 1, a2 = 2;
    Swap<int>(a1, a2);   
    double a3 = 3.1, a4 = 4.2;
    Swap<double>(a3, a4);   
    return 0;
}
